package com.tianxiabuyi.model.pojo;


import com.alibaba.fastjson.annotation.JSONField;
import com.tianxiabuyi.model.base.TXBYObject;

import java.util.ArrayList;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name="survey")
public class Survey extends TXBYObject
{
    private String title;
    private Integer category;

    @Column(name="dept_id")
    @JSONField(name ="dept_id")
    private Integer deptId;
    private String detail;
    private Integer enable;

    @Transient
    private List<SurveyQuestion> quests = new ArrayList();



    public Integer getEnable() {
        return this.enable;
    }

    public void setEnable(Integer enable) {
        this.enable = enable;
    }

    public String getDetail() {
        return this.detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public Integer getDeptId() {
        return this.deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

   

    public String getTitle() {
        return this.title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getCategory() {
        return this.category;
    }

    public void setCategory(Integer category) {
        this.category = category;
    }

    public List<SurveyQuestion> getQuests() {
        return this.quests;
    }

    public void setQuests(List<SurveyQuestion> quests) {
        this.quests = quests;
    }
}